package cn.tlb.ui;

import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;

import cn.tlb.ui.custom.percent.PercentLayoutActivity;
import cn.tlb.ui.custom.progressbutton.NewUiTestActivity;
import cn.tlb.ui.resource.drawable.ClipDemoActivity;
import cn.tlb.ui.resource.drawable.DrawActivity;
import cn.tlb.ui.sdk_widget.MySimpleCropViewActivity;
import cn.tlb.ui.sdk_widget.SimpleCropViewActivity;
import cn.tlb.ui.widget.DialogDemoActivity;
import cn.tlb.ui.widget.JSDemoActivity;
import cn.tlb.ui.widget.ListDemoActivity;
import cn.tlb.ui.widget.NumberPickerActivity;
import cn.tlb.ui.widget.PopupDemoActivity;
import cn.tlb.ui.widget.SwipeRefreshActivity;
import cn.tlb.ui.widget.UserProtocolActivity;


public class UIContents extends LauncherActivity {
    String[] titles = {
            "文字 + 进度条",
            "(List)PopupWindow",
            "clip clip",
            "swipe refresh",
            "NumberPicker",
            "固定item的ListView",
            "some effect",
            "js和Android交互",
            "用户协议",
            "切图--SimpleCropView",
            "切图--MySimpleCropView",
            "Dialog",
            "自定义百分比布局"
    };
    Class[] cls = {
            NewUiTestActivity.class,
            PopupDemoActivity.class,
            ClipDemoActivity.class,
            SwipeRefreshActivity.class,
            NumberPickerActivity.class,
            ListDemoActivity.class,
            DrawActivity.class,
            JSDemoActivity.class,
            UserProtocolActivity.class,
            SimpleCropViewActivity.class,
            MySimpleCropViewActivity.class,
            DialogDemoActivity.class,
            PercentLayoutActivity.class

    };
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, titles));
    }

    @Override
    protected Intent intentForPosition(int position) {
        return new Intent(this, cls[position]);
    }
}
